import { createApp } from 'vue'
import App from './App.vue'
import axios from '@/plugins/axiosInstance.js'
import Vant from 'vant';
import 'vant/lib/index.css';
import router from './routes';
import cookie from './util/cookie';

const app = createApp(App)

app.config.globalProperties.cookie = cookie
app.config.globalProperties.$axios = axios
// 引入完毕之后就可以在任意页面中通过 this.cookie.方法名（值）来增删查cookie。
// this.cookie.setCookie()   //存cookie
// this.cookie.getCookie()  //读cookie
// this.cookie.clearCookie()   //删cookie

app.use(Vant);
app.use(router)

app.mount('#app')

